package com.xgll.modules.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xgll.modules.api.dao.ApiUserQuestionMapper;
import com.xgll.modules.api.entity.QuestionVo;

@Service
public class ApiUserQuestionService {
	@Autowired
	private ApiUserQuestionMapper questionDao;
	
	public QuestionVo queryObject(Integer id){
		return questionDao.queryObject(id);
	}
	

	    public List<QuestionVo> queryList(Map<String, Object> map) {
	        return questionDao.queryList(map);
	    }


	    public int queryTotal(Map<String, Object> map) {
	        return questionDao.queryTotal(map);
	    }


	    public void save(QuestionVo questions) {
	    	questionDao.save(questions);
	    }


	    public void update(QuestionVo questions) {
	    	questionDao.update(questions);
	    }


	    public void delete(Integer id) {
	    	questionDao.delete(id);
	    }

}
